import http from '@/util/requestHttp'

export default{
    getTopic(){
        return http.get("/topic/selectTopic");
    },
    getSearchTopic(searchInfo){
        return http.get(`/topic/selectTopicByLike/${searchInfo}`)
    },
    insertOrupdateTopic(topic){
        return http.post(`/topic/insertOrUpdateTopic`,topic)
    },
    deleteTopic(topic){
        return http.delete(`/topic/delete`,topic)
    }
}